import request from '@/utils/request'

export function getPages(query) {
  return request({
    url: '/pagination/page/getList',
    method: 'post',
    data: query
  })
}

export function getPageDetail(id) {
  return request({
    url: '/pagination/page/getDetail',
    method: 'post',
    data: id
  })
}

export function savePage(id) {
  return request({
    url: '/pagination/page/save',
    method: 'post',
    data: id
  })
}

export function copyPage(id) {
  return request({
    url: '/pagination/page/copy',
    method: 'post',
    data: id
  })
}

export function removePageByID(id) {
  return request({
    url: '/pagination/page/remove',
    method: 'post',
    data: id
  })
}

export function deletePageByID(id) {
  return request({
    url: '/pagination/page/delete',
    method: 'post',
    data: id
  })
}

export function changeStatusByPageID(id) {
  return request({
    url: '/pagination/page/change-status',
    method: 'post',
    data: id
  })
}

